package org.j2eedemos.webflow.tiles2;

import java.io.Serializable;

/**
 * The model for this demo.
 *
 * @author Allen Parslow
 */
public class DemoModel implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer clickCount = 0;

    /**
     * Gets the the number of times the ajax button was pressed.
     *
     * @return The click count.
     */
    public Integer getClickCount() {
        return clickCount;
    }

    /**
     * Sets the the number of times the ajax button was pressed.
     *
     * @param clickCount The click count.
     */
    public void setClickCount(Integer clickCount) {
        this.clickCount = clickCount;
    }

    /**
     * Increments the the number of times the ajax button was pressed.
     */
    public void addClickCount() {
        this.clickCount++;
    }
}
